from django.conf.urls import url, include
from . import views
urlpatterns = [
    #注册
    url(r'register/$',views.RegisterView.as_view(),name = 'register'),
    #登录
    url(r'login/$', views.LoginView.as_view(), name='login'),
    #登出
    url(r'logout/$', views.LogoutView.as_view(), name='logout'),
    #首页
    url(r'^$', views.IndexView.as_view(), name="index"),
    # 忘记密码
    url(r'^forget/$', views.ForgetPwdView.as_view(), name='forget_pwd'),
    #修改密码
    url(r'^reset/(?P<active_code>.*)/$', views.ResetView.as_view(), name='reset_pwd'),
    #验证密码
    url(r'^modify/$', views.ModifyView.as_view(), name='modify_pwd'),
    #用户中心
    url(r'^info/$', views.UserInfoView.as_view(), name='user_info'),
    #修改头像
    url(r'^image/upload/$', views.UploadImageView.as_view(), name='image_upload'),
    #我的课程
    url(r'^mycourse/$', views.MyCourseView.as_view(), name='mycourse'),
    #我的收藏---课程学校
    url(r'^myfav/org/$', views.MyFavOrgView.as_view(), name='myfav_org'),
    #我的收藏---老师
    url(r'^myfav/teacher/$', views.MyFavTeacherView.as_view(), name='myfav_teacher'),
    #我的收藏---公开课
    url(r'^myfav/course/$', views.MyFavCourseView.as_view(), name='myfav_course'),
    #我的消息
    url(r'^mymessage/$', views.MyMessageView.as_view(), name='mymessage'),
]
